<li>
  <% if category.children.size == 0 %>
    <%=link_to "#{category.name_to_local_language} ", :controller => :catalogs, :action => :find, :id => 0, :thematic_id => category.thematic_id  %>
  <% else %>
    <a href="/"><%=cat.name_to_local_language%></a>
    <ul>
      <% category.children.each do |category_child| %>
        <%=render :partial=>'catalogs/filters/tree_thematics', :locals => {:category => category_child} %>
      <% end %>
    </ul>
  <% end %>
</li>

